#ifndef JUDGEMENTFORM_HPP
#define JUDGEMENTFORM_HPP

#include <QWidget>
#include <ExamInterface.hpp>
#include <Question.hpp>

class QButtonGroup;

namespace Ui {
class JudgementForm;
}

class JudgementForm : public QWidget,public ExamInterface
{
    Q_OBJECT

public:
    explicit JudgementForm(RandomQuestion *rdq,QWidget *parent = 0);
    ~JudgementForm();
    bool checkCorrection(QString*);
    bool nextQuestion(QString *);
    void updateConfig(const ExamConfig *);
    void clearText();
private:
    Ui::JudgementForm *ui;
    QButtonGroup *group;
    RandomQuestion *randomq;
    bool answer,status;
};

#endif // JUDGEMENTFORM_HPP
